package com.topsoft.email.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.google.common.base.Objects;
import com.mvc.core.model.ModelObject;

@Entity
@Table(name = "t_email_log")
public class EmailLog extends  ModelObject{
	
	private  String  id;
	
	private  String  sender;
	
	private  String  receiver;
	
	private  String  content;
	
	
    @Id
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		
		String str= Objects.toStringHelper(this)
                .add("id", this.id)
                .add("sender", this.sender)
                .add("receiver", this.receiver)
                .add("content", this.content)
                .toString();
		return str;
	}
	
	
	
	
	

}
